@import './variables.scss';
@import './mixin.scss';
@import './btn.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './rightmenu.scss';
@import './markdown.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;

  // 主体区域
  .main-container {
    min-height: 100%;
    transition: margin-left 0.28s;
    margin-left: $leftWidth;
    background-color: $contentBg;

    .app-main {
      flex: 1;
      overflow: auto;
      height: calc(100vh - 84px);

      .app-container {
        padding: 20px;
      }

    }
  }

  // new layout
  .main-wrapper {
    .app-container {
      width: 77%;
      margin: 0 auto;
      min-width: 1200px;

      .info-left {
        float: left;
        width: 70%;
        overflow-x: hidden;
        overflow-y: auto;
        height: calc(100vh - 80px);

        &::-webkit-scrollbar {
          width: 4px;
        }

        &::-webkit-scrollbar-track {
          background-color: white;
        }

        &::-webkit-scrollbar-thumb {
          background-color: lightgray;
          border-radius: 50%;
        }
      }

      .info-right {
        float: right;
        width: 30%;
        padding-left: 20px;
      }

      .scroll-box {
        margin: 0 auto;
        padding-right: 15px;
        width: 90%;
        overflow-x: hidden;
        overflow-y: auto;
        height: calc(100vh - 80px);

        &::-webkit-scrollbar {
          width: 1px;
        }

        &::-webkit-scrollbar-track {
          background-color: white;
        }

        &::-webkit-scrollbar-thumb {
          background-color: lightgray;
          border-radius: 50%;
        }
      }
    }
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: $placeholderColor;
}

input::-moz-placeholder {
  /* Firefox 19+ */
  color: $placeholderColor;
}

input:-ms-input-placeholder {
  /* IE 10+ */
  color: $placeholderColor;
}

input:-moz-placeholder {
  /* Firefox 18- */
  color: $placeholderColor;
}